//
//  common.swift
//  Mircoblog-swift
//
//  Created by zz on 16/2/27.
//  Copyright © 2016年 zz. All rights reserved.
//

import UIKit

//https://api.weibo.com/oauth2/authorize?client_id=1125110873&redirect_uri=http://baidu.com
// MARK: - 定义全局共享参数，类似于 OC 的 PCH
/// 全局外观渲染颜色
let ZDAppearanceTintColor = UIColor.orangeColor()

 /// 登录成功通知
let ZDMircoblogSuccessedNotification = "ZDMircoblogSuccessedNotification"

//MARK: - 全局函数
func delay(delay: NSTimeInterval = 1.0, block: ()->()){

    dispatch_after(
        dispatch_time(DISPATCH_TIME_NOW, Int64(Double(NSEC_PER_SEC)*delay)),
        dispatch_get_main_queue()) {
            
            block()
    }
}